function __ea__base_css(){
    let _this=this;
    _this.num=6;//css权重
    /*创建css基础样式 -border*/
    _this.create_base_border=function(v=24){
        let style_val="";
        let a=["s","o","a","d"],b=["","-r","-l","-t","-b","-x","-y"];
        let h=["solid","dotted","dashed","double"];
        let c=[".ea_b#x#x","{#x}","border#x-style:#x;border#x-width:#xpx;"];
        let d={"-r":["-right"],"-l":["-left"],"-t":["-top"],"-b":["-bottom"],"-x":["-right","-left"],"-y":["-top","-bottom"],"":[""]};
        for (let x=0;x<=v;x++){
            for (let i=0;i<a.length;i++){
                for(let j=0;j<b.length;j++){
                        let e=c[0],f=d[b[j]],g="";
                        e = e.replace(/#x/,a[i]+b[j]).replace(/#x/,"-"+x);
                        let u=e;
                        for(let i=0;i<_this.num;i++){
                            e=e+u;
                        }
                        for (let m=0;m<f.length;m++){
                            g=g+c[2].replace(/#x/,f[m]).replace(/#x/,h[i]).replace(/#x/,f[m]).replace(/#x/,x);
                        }
                        let y=c[1];
                        e = e+y.replace(/#x/,g);
                        style_val=style_val+e;
                }
            }
        }
        return style_val

    };
    /*创建css基础样式 -margin*/
    _this.create_base_margin=function(v=[-24,24]){
        let style_val="";
        let b=["","r","l","t","b","x","y"];
        let c=[".ea_m#x#x","{#x}","margin#x:#xpx;"];
        let d={"r":["-right"],"l":["-left"],"t":["-top"],"b":["-bottom"],"x":["-right","-left"],"y":["-top","-bottom"],"":[""]};
        for (let x=v[0];x<=v[1];x++){
                for(let j=0;j<b.length;j++){
                        let e=c[0],f=d[b[j]],g="";
                        e = e.replace(/#x/,b[j]).replace(/#x/,"-"+x);
                        let u=e;
                        for(let i=0;i<_this.num;i++){
                            e=e+u;
                        }
                        for (let m=0;m<f.length;m++){
                            g=g+c[2].replace(/#x/,f[m]).replace(/#x/,x*4);
                        }
                        let y=c[1];
                        e = e+y.replace(/#x/,g);
                        style_val=style_val+e;
                }
        }
        return style_val

    };
    /*创建css基础样式 -padding*/
    _this.create_base_padding=function(v=[0,24]){
        let style_val="";
        let b=["","r","l","t","b","x","y"];
        let c=[".ea_p#x#x","{#x}","padding#x:#xpx;"];
        let d={"r":["-right"],"l":["-left"],"t":["-top"],"b":["-bottom"],"x":["-right","-left"],"y":["-top","-bottom"],"":[""]};
        for (let x=v[0];x<=v[1];x++){
                for(let j=0;j<b.length;j++){
                        let e=c[0],f=d[b[j]],g="";
                        e = e.replace(/#x/,b[j]).replace(/#x/,"-"+x);
                        let u=e;
                        for(let i=0;i<_this.num;i++){
                            e=e+u;
                        }
                        for (let m=0;m<f.length;m++){
                            g=g+c[2].replace(/#x/,f[m]).replace(/#x/,x*4);
                        }
                        let y=c[1];
                        e = e+y.replace(/#x/,g);
                        style_val=style_val+e;
                }
        }
        return style_val

    };
    /*创建css基础样式 -font*/
    _this.create_base_font1=function(v=[0,24]){
        let style_val="";
        let a=0.5,b=".ea_f-#x",y="{font-size:#xrem}";
        for (let x=v[0];x<=v[1];x++){
            let e=b.replace(/#x/,x);
            let u=e;
            for(let i=0;i<_this.num;i++){
                e=e+u;
            }
            c=e+y.replace(/#x/,a+x*0.25);
            style_val=style_val+c;
        }
        return style_val

    };
    _this.create_base_font2=function(v=[1,9]){
        let style_val="";
        let a=100,b=".ea_fw-#x",y="{font-weight:#x}";
        for (let x=v[0];x<=v[1];x++){
            let e=b.replace(/#x/,x);
            let u=e;
            for(let i=0;i<_this.num;i++){
                e=e+u;
            }
            c=e+y.replace(/#x/,a*x);
            style_val=style_val+c;
        }
        return style_val
    };

    /*创建css基础样式 -height*/
    _this.create_base_height=function(v=[0,24]){
        let style_val="";
        let a=0.75,b=".ea_h-#x",y="{height:#xrem}";
        for (let x=v[0];x<=v[1];x++){
            let e=b.replace(/#x/,x);
            let u=e;
            for(let i=0;i<_this.num;i++){
                e=e+u;
            }
            c=e+y.replace(/#x/,a+x*0.5);
            style_val=style_val+c;
        }
        return style_val

    };
    /*创建css基础样式 -scale*/
    _this.create_base_scale=function(v=[0,30]){
        let style_val="";
        let a=0.1,b=".ea_scale-#x",y="{scale:#x}";
        for (let x=v[0];x<=v[1];x++){
            let e=b.replace(/#x/,x);
            let u=e;
            for(let i=0;i<_this.num;i++){
                e=e+u;
            }
            c=e+y.replace(/#x/,a+x*0.1);
            style_val=style_val+c;
        }
        return style_val

    };
    /*创建css基础样式 -shadow*/

    /*创建*/
    _this.create_css=function(){
    let id_="__ea__base_css_id";
    var element = document.getElementById(id_);
    if (!element) {
        let styleElement = document.createElement('style');
        styleElement.id = id_;
        let head = document.head || document.getElementsByTagName('head')[0];
        let set_style="@media(min-width: 0px){html{overflow-y:auto!important}}";
        set_style=set_style+_this.create_base_border();
        set_style=set_style+_this.create_base_margin();
        set_style=set_style+_this.create_base_padding();
        set_style=set_style+_this.create_base_font1();
        set_style=set_style+_this.create_base_font2();
        set_style=set_style+_this.create_base_height();
        set_style=set_style+_this.create_base_scale();
        styleElement.innerHTML=set_style;
        head.appendChild(styleElement);
    }
    };
}
window.__ea__base_css_obj=new __ea__base_css();
t=__ea__base_css_obj.create_css();

// console.log(__ea__base_css_obj.create_base_font1())
